package com.food.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import com.food.pojo.Foods;
import com.food.pojo.FoodsDto;

import java.util.List;


public interface FoodsService extends IService<Foods> {
    /**
     * 热门美食查找
     * @param limit
     * @param fixed
     * @return
     */
    List<Foods> getPopularList(Integer limit, String fixed);

    /**
     * 美食详情页信息
     * @param foodsId
     * @return
     */
    FoodsDto getDetailsList(Integer foodsId);

    /**
    * @description 根据用户的行为特征基于UserCF算法推荐
    * @param userId,fixed
    * @author beixiang
    * @date 2023/7/20 19:48
    */
    List<Foods> selectRecommendation(Integer userId,String fixed);

    /**
     * "fixed":"定位"，
     * "type":"类型"，
     * "star"："星级"，
     * "sort"：“排序方式",
     * "page":"当前页",
     * "limit":"每页条数",
     * @return
     */
    Page<Foods> getRecommend(String fixed, String type, Double star, String sort, Integer page, Integer limit);

    /**
     *
     * @param fixed
     * @param type
     * @param star
     * @param sort
     * @param keyword
     * @return
     */
    Page<Foods> getSearch(String fixed, String type, Double star, String sort, String keyword, Integer page, Integer limit);
}
